package com.utooo.pojo.dto.purchase.contract;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContractAttachmentDTO {

    /**
     * 是否套用模板
     */
    @Schema(description = "是否套用模板")
    private String isTemplate;

    /**
     * 合同模板
     */
    @Schema(description = "合同模板")
    private String contractTemplate;

    /**
     * 合同文件
     */
    @Schema(description = "合同文件")
    private String contractFile;

    /**
     * 合同生效日期
     */
    @Schema(description = "合同生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate effectiveDate;

    /**
     * 合同终止日期
     */
    @Schema(description = "合同终止日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate terminationDate;
}